package com.zzf.concurrent.example.design.pattern.single.thread;

/**
 * 单线程执行设计模式
 * @author GaoFeng2017
 * @date 2019/9/6 15:38
 */
public class Client {
    public static void main(String[] args) {
        Gate gate = new Gate();
        User u1 = new User("zhz", "123", "143", gate);
        User u2 = new User("zzf", "612", "612", gate);
        User u3 = new User("ysl", "888", "803", gate);
        User u4 = new User("cyf", "999", "933", gate);

        u1.start();
        u2.start();
        u3.start();
        u4.start();
    }
}
